package com.design.yjx.factory;

/**
 * @author yuanjianxin
 * @date 2017/8/3 15:39
 */
public class Main {
    public static void main(String[] args) {

        PizzaStore nyPizzaStore = new NyPizzaStore();
        Pizza cheese = nyPizzaStore.orderPizza("cheese");

        System.out.println("披萨名称:"+cheese.getName());

        PizzaStore clPizzaStore = new ClPizzaStore();
        Pizza clam = clPizzaStore.orderPizza("clam");

        System.out.println("披萨名称:"+clam.getName());

    }
}
